{{include template('public/header','admin')}}
<body>
    <div id="page-wrapper">
        <div class="row">
            <div class="col-lg-12">
                <div class="page-header">
                    <a href="/member/pay" class="btn btn-default bar-btn">入账记录</a>
                    <a href="/member/payspend" class="btn btn-primary bar-btn">消费记录</a>
                    <a href="/member/member/recharge" class="btn btn-default bar-btn">在线充值</a>
                </div>
                <div class="search">
                    <div class="well">
                        <form id='searform' name='searform' class="form-inline" action="{{url()}}" method="get">
                            <div class="form-group">
                                <label for="type">关键字</label>
                                <select name="type" class="form-control">
                                    <option   value="trade_sn" {{if $search['type'] eq 'trade_sn' }}selected {{/if}}>{{L('payspend_trade_sn')}}</option>
                                    <option   value="username" {{if $search['type'] eq 'username' }}selected {{/if}}>{{L('payspend_username')}}</option>
                                </select>
                                <input type="text" class="form-control" id="keyword" name="keyword" value="{{$search.keyword}}" maxlength="15" tabindex="2" />
                            </div>
                            <button type="submit" class="btn btn-primary"><i class="fa fa-search" aria-hidden="true"></i>{{L('search')}}</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-12">
                <form id='cpform' name='cpform' method="post" action="/member/payspend/batchremove" class="form-inline" role="form">
                    <table id='PayspendList' class="table table-condensed table-hover table-striped tablesorter table-fixed table-selectable">
                        <thead>
                            <tr>
                                <th style="width: 15px;">

                                </th>
                                <th>{{L('payspend_trade_sn')}}</th>
                                <th>{{L('payspend_username')}}</th>
                                <th>{{L('payspend_money')}}</th>
                                <th>{{L('payspend_creat_time')}}</th>
                                <th>{{L('payspend_msg')}}</th>
                                <th>{{L('payspend_ip')}}</th>
                                <th>{{L('payspend_remarks')}}</th>
                                <th>{{L('edit')}}</th>
                            </tr>
                        </thead>
                        <tbody>
                            {{foreach $items as $item}}
                            <tr>
                                <td><input type="checkbox" class="checkbox" name="ids[]" value="{{$item.id}}" /></td>
                                <td >{{$item.trade_sn}}</td>
                                <td >{{$item.username}}({{$item.userid}})</td>
                                <td >{{$item.money}}</td>
                                <td >{{$item.creat_time}}</td>
                                <td >{{$item.msg}}</td>
                                <td >{{$item.ip}}</td>
                                <td >{{$item.remarks}}</td>
                                <td style="width: 15%">
                                    <a href="/member/payspend/manage/?id={{$item.id}}"  class="btn btn-warning btn-xs" style="text-decoration:none">修改</a>
                                    <a href="javascript:;" onclick="layer_del('/member/payspend/delete/?id={{$item.id}}')"  class="btn btn-danger btn-xs" style="text-decoration:none">删除</a>
                                </td>
                            </tr>
                            {{/foreach}}
                        </tbody>
                        <tr>
                            <td colspan="15">
                                <div style="text-align: left;">
                                    <input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkAll('prefix', this.form, 'ids')" />{{L('chkall')}}
                                    <input type="radio" class="radio" id="optype_outer" name="optype" value="del" />{{L('delete')}}
                                    <input type="submit" class="btn" name="sendsubmit" value="{{L('submit')}}" />
                                    {{include template('public/page','admin')}}
                                </div>
                            </td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
    </div>
</body>
</html>
